<div class="memberTable">
             
			<?php if($this->session->userdata('g_group')->idgroup==0):?>				
				<table>
					<tr>
						<th class="first" colspan="2">Group</th>
					</tr>
					<tr class="row-b">
						<td><a href="#">Tổng số: </span> <?php if(!empty($point)){echo $point['group']->total;};?></a> </td>
						<td><a href="#">Hiện tại: <?php if(!empty($point)){echo $point['group']->curent;};?> </a></td>
					</tr>
                    <tr class="row-a">
						<td><a href="#">Đang chờ thanh toán <?php if(!empty($point)){echo $point['group']->pending;};?></a></td>
						<td><a href="#"></a></td>
					   
                    </tr>					
					<tr class="row-b">
					<td><a href="<?php echo base_url();?>group/subgroup/group">Quản lý thành viên </a></td>
						<td><a href="<?php echo base_url().'group/subgroup/add'?>">Thêm thành viên</a></td>
					</tr>
					<tr class="row-a">                        
                        <td><a href="#">Cashout </a></td>
						<td><a href="<?php echo base_url();?>group/history">Lịch sử thanh toán</a></td>
					</tr>
                    <tr class="row-b">
                        <td><a href="<?php echo base_url().'group/changepass'?>">Change Password </a></td>
						<td><a href="<?php echo base_url()?>group/logout">Logout</a></td>
					   
                    </tr>
				</table>
            <?php elseif($this->session->userdata('g_group')->idgroup!=0):
                    if($this->session->userdata('g_thongbao')){
                        echo '<div class="thongbao">'.$this->session->userdata('g_thongbao').'</div>';
                        $this->session->unset_userdata('g_thongbao');
                    }
            ?>
                <table>
					<tr>
						<th class="first" colspan="2">
                        <?php echo $this->session->userdata('g_group')->username;?>:                            
                        </th>
					</tr>
					<tr class="row-a">
						<td> <a href="#">Tổng số: <?php if(!empty($point)){echo $point->total;};?> </a></td>
						<td><a href="#">Hiện tại: <?php if(!empty($point)){echo $point->curent;};?> </a></td>
					</tr>
                    <tr class="row-b">
						<td><a href="#">Đang chờ thanh toán: <?php if(!empty($point)){echo $point->pending;};?></a></td>
						<td><a href="<?php echo base_url().'group/payout'?>">Cashout </a></td>
					
                    </tr>					
					
					<tr class="row-a">                        
    	               <td><a href="<?php echo base_url();?>group/history">Lịch sử thanh toán </a></td>
					   <td><a href="<?php echo base_url().'group/account_subgroup'?>">Danh sách account</a></td>
						
                    </tr>
                    <tr class="row-b">
                        <td><a href="<?php echo base_url().'group/changepass'?>">Change Password </a></td>
						<td><a href="<?php echo base_url()?>group/logout">Logout</a></td>			   
                    </tr>
                   
				</table>
                <blockquote>
                                <a style="color: #23540E;font-weight:normal" href="<?php echo base_url().'user/register/group/'.$this->session->userdata('g_group')->id;?>">
                                    <?php echo base_url().'user/register/group/'.$this->session->userdata('g_group')->id;?>
                                </a>
                            </blockquote>
            <?php endif;?>
  
  </div>